	<!-- $Id: order_info.htm 17060 2010-03-25 03:44:42Z liuhui $ -->

{include file="pageheader.htm"}
{insert_scripts files="topbar.js,../js/utils.js,listtable.js,selectzone.js,../js/common.js"}
{if $user}
<div id="topbar">
  <div align="right"><a href="" onclick="closebar(); return false"><img src="images/close.gif" border="0" /></a></div>
  <table width="100%" border="0">
    <caption><strong> {$lang.buyer_info} </strong></caption>
    <tr>
      <td> {$lang.email} </td>
      <td> <a href="mailto:{$user.email}">{$user.email}</a> </td>
    </tr>
    <tr>
      <td> {$lang.user_money} </td>
      <td> {$user.formated_user_money} </td>
    </tr>
    <tr>
      <td> {$lang.pay_points} </td>
      <td> {$user.pay_points} </td>
    </tr>
    <tr>
      <td> {$lang.rank_points} </td>
      <td> {$user.rank_points} </td>
    </tr>
    <tr>
      <td> {$lang.rank_name} </td>
      <td> {$user.rank_name} </td>
    </tr>
    <tr>
      <td> {$lang.bonus_count} </td>
      <td> {$user.bonus_count} </td>
    </tr>
  </table>
 
</div>
{/if}


<div class="list-div" style="margin-bottom: 5px">
<table width="100%" cellpadding="3" cellspacing="1">
 <!--  <tr>
    <td colspan="4">
      <div align="center">
        <input name="prev" type="button" class="button" onClick="location.href='order.php?act=info&order_id={$prev_id}';" value="{$lang.prev}" {if !$prev_id}disabled{/if} />
        <input name="next" type="button" class="button" onClick="location.href='order.php?act=info&order_id={$next_id}';" value="{$lang.next}" {if !$next_id}disabled{/if} />
        <input type="button" onclick="window.open('order.php?act=info&order_id={$order.order_id}&print=1')" class="button" value="{$lang.print_order}" />
    </div></td>
  </tr> -->
  <tr>
    <th colspan="4">{$lang.base_info}</th>
  </tr>
  <tr>
    <td width="18%"><div align="right"><strong>{$lang.label_order_sn}</strong></div></td>
    <td width="34%">{$order.order_id}
	</td>
    <td width="15%"><div align="right"><strong>羊只品种</strong></div></td>
    <td>{$order.sheep_pinzhong}</td>
  </tr>
<!--   <tr>
    <td><div align="right"><strong>{$lang.label_user_name}</strong></div></td>
    <td>{$order.user_name|default:$lang.anonymous} {if $order.user_id > 0}[ <a href="" onclick="staticbar();return false;">{$lang.display_buyer}</a> ] [ <a href="user_msg.php?act=add&order_id={$order.order_id}&user_id={$order.user_id}">{$lang.send_message}</a> ]{/if}</td>
    <td><div align="right"><strong>{$lang.label_order_time}</strong></div></td>
    <td>{$order.formated_add_time}</td>
  </tr> 
  <tr>
    <td><div align="right"><strong>{$lang.label_payment}</strong></div></td>
    <td>{if $order.pay_id > 0}{$order.pay_name}{else}{$lang.require_field}{/if}<a href="order.php?act=edit&order_id={$order.order_id}&step=payment" class="special">{$lang.edit}</a>
    ({$lang.action_note}: <span onclick="listTable.edit(this, 'edit_pay_note', {$order.order_id})">{if $order.pay_note}{$order.pay_note}{else}N/A{/if}</span>)</td>
    <td><div align="right"><strong>{$lang.label_pay_time}</strong></div></td>
    <td>{$order.pay_time}</td>
  </tr>-->
  <tr>
    <td><div align="right"><strong>下单时间：</strong></div></td>
    <td>{$order.add_time}</td>
    <td><div align="right"><strong>购买人信息：</strong></div></td>
    <td>
	用户名：{$user.user_name}<br/>
	实名：{$order.smname}<br/>
	身份证：{$order.smsfz}<br/>
	手机号：{$order.mobile_phone}<br/>
	</td>
  </tr>


</table>
</div>

<div class="list-div" style="margin-bottom: 5px">
<table width="100%" cellpadding="3" cellspacing="1">
  <tr>
    <th colspan="8" scope="col">羊只信息</th>
    </tr>
  <tr>
    <td scope="col"><div align="center"><strong>羊只名称</strong></div></td>
    <td scope="col"><div align="center"><strong>品种</strong></div></td>
    <td scope="col"><div align="center"><strong>图片</strong></div></td>
    <td scope="col"><div align="center"><strong>单价</strong></div></td>
    <td scope="col"><div align="center"><strong>数量</strong></div></td>
    <td scope="col"><div align="center"><strong>总价</strong></div></td>
    <td scope="col"><div align="center"><strong>羊只耳号</strong></div></td>
   
  </tr>

  <tr>
    <td><a href="../sheep.php?act=details&id={$goods.sheep_id}" target="_blank">{$goods.sheep_name}</td>
    <td>{$goods.sheep_pinzhong}</td>
    <td><img src="../{$goods.logo_img}" width="100px"  /></td>
    <td><div align="center">{$goods.price}</div></td>
    <td><div align="center">{$order.sheep_number}</div></td>
    <td>{$order.sheep_price}</td>
    <td><div align="center">
	<form action="sheep_list.php?act=geterhao" method="post" name="theForm">
		{foreach from=$goods.goods_arrs item=items key=keys}
			{if $items.erhao}
			<input type="text" name="sheep_erhao[{$items.id}]" value="{$items.erhao}"><br/>
			{else}
			<input type="text" name="sheep_erhao[]" value=""><br/>
			{/if}
		{/foreach}
		<input type="hidden" name="order_id" value="{$order.order_id}">
		<input type="hidden" name="acts"  value="{$acts}">
		 <input name="assign" type="submit" value="更新耳号" class="button" />
	</form>
	</div></td>
 
  </tr>

 
</table>
</div>

 
 
{literal}
<script language="JavaScript">
{/literal}
  var oldAgencyId = {$order.agency_id|default:0};
{literal}
  onload = function()
  {
    // 开始检查订单
    startCheckOrder();
  }

  /**
   * 把订单指派给某办事处
   * @param int agencyId
   */
  function assignTo(agencyId)
  {
    if (agencyId == 0)
    {
      alert(pls_select_agency);
      return false;
    }
    if (oldAgencyId != 0 && agencyId == oldAgencyId)
    {
      alert(pls_select_other_agency);
      return false;
    }
    return true;
  }
</script>
{/literal}

{include file="pagefooter.htm"}